/**
 * Copyright (C) 2011-2012 Luca Li Greci
 *
 * This file is part of pojo-creator
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.pojocreator.model.real.library;

/**
 * A book has a category and an author
 * 
 * @author Luca Li Greci
 */
public class Book {
    private Long id;
    private String title;
    private int pages;
    private BookCategory category;
    private Writer author;
    
    
    /**
     * @return the id
     */
    public Long getId() {
        return id;
    }
    /**
     * @param id the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }
    /**
     * @return the title
     */
    public String getTitle() {
        return title;
    }
    /**
     * @param title the title to set
     */
    public void setTitle(String title) {
        this.title = title;
    }
    /**
     * @return the pages
     */
    public int getPages() {
        return pages;
    }
    /**
     * @param pages the pages to set
     */
    public void setPages(int pages) {
        this.pages = pages;
    }
    /**
     * @return the category
     */
    public BookCategory getCategory() {
        return category;
    }
    /**
     * @param category the category to set
     */
    public void setCategory(BookCategory category) {
        this.category = category;
    }
    /**
     * @return the author
     */
    public Writer getAuthor() {
        return author;
    }
    /**
     * @param author the author to set
     */
    public void setAuthor(Writer author) {
        this.author = author;
    }
}
